home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / xlib04.zip / XDETECT.H < prev    next >
C/C++ Source or Header  |  1992-11-13  |  2KB  |  63 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XDETECT - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;-----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XDETECT_H_
  22. #define _XDETECT_H_
  23.  
  24. #define I8086   0
  25. #define I80186  1
  26. #define I80286  2
  27. #define I80386  3
  28.  
  29. #define NoGraphics 0
  30. #define MDA        1
  31. #define CGA        2
  32. #define EGAMono    3
  33. #define EGAColor   4
  34. #define VGAMono    5
  35. #define VGAColor   6
  36. #define MCGAMono   7
  37. #define MCGAColor  8
  38.  
  39. #define BUS_MOUSE     1
  40. #define SERIAL_MOUSE  2
  41. #define INPORT_MOUSE  3
  42. #define PS2_MOUSE     4
  43. #define HP_MOUSE      5
  44.  
  45. /* VARIABLES =========================================================== */
  46.  
  47. extern WORD MouseButtonCount;  /* number of mouse buttons */
  48. extern WORD MouseVersion;      /* mouse driver version    */
  49. extern WORD MouseType;         /* mouse type              */
  50. extern WORD MouseIRQ;          /* mouse IRQ number        */
  51.  
  52. /* FUNCTIONS =========================================================== */
  53.  
  54. extern int x_graphics_card(void);  /* Detect installed Graphics card type */
  55. extern int x_processor(void);      /* Detect processor type */
  56. extern int x_coprocessor(void);    /* Detect math co-processor type */
  57. extern int x_mousedriver(void);    /* Detect math co-processor type */
  58.  
  59.  
  60. #endif
  61.  
  62.  
  63.